package com.woniu.project.client;

import com.woniu.project.core.dto.ResultDto;
import com.woniu.project.params.identifyparams.IdentifyConditionParams;
import com.woniu.project.params.identifyparams.IdentifyParams;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

@FeignClient(name = "assess-server")
public interface ProductEntityIdentifyClient {
    /**
     * 新增一条鉴定记录
     * @param identifyParams 鉴定记录对象
     * @return
     */
    @PostMapping("/pawn/assess/identify/insertIdentity")
    public ResultDto insertIdentity(@Valid @RequestBody IdentifyParams identifyParams);
    /**
     * 分页查询单个商品下的所有历史鉴定记录
     * @param identifyConditionParams 查询条件参数对象
     * @return
     */
    @GetMapping("/pawn/assess/identify/selectIdentityList")
    public ResultDto selectIdentityList(@Valid @RequestBody IdentifyConditionParams identifyConditionParams);

}
